import 'package:flutter/material.dart';
import 'package:flutter_09_game/base/widget/base_get_builder.dart';
import 'package:flutter_09_game/generated/assets.dart';
import 'package:flutter_09_game/generated/locales.g.dart';
import 'package:flutter_09_game/user/app_user_manager.dart';
import 'package:flutter_09_game/widgets/appbar/common_app_bar.dart';
import 'package:flutter_09_game/widgets/image/auto_image.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import '../../config/app_color.dart';
import 'welfare_logic.dart';

class WelfarePage extends StatelessWidget {
  WelfarePage({super.key});

  final WelfareLogic logic = Get.put(WelfareLogic());

  @override
  Widget build(BuildContext context) {
    return BaseGetBuilder<WelfareLogic>(
      appBar: CommonAppBar(
        title: LocaleKeys.benefitCenter.tr,
        showBack: false,
        actions: [
          GestureDetector(
            onTap: () {
              AppUserManager().showServiceSheet();
            },
            child: AutoImage(
              Assets.commonServiceBtn,
              width: 32.w,
            ),
          ),
          10.horizontalSpace,
        ],
      ),
      builder: (l) {
        return SingleChildScrollView(
          padding: EdgeInsets.all(16.w),
          child: Column(
            children: [
              AutoImage(
                Assets.welfareBannarItem1,
                height: 125.w,
                fit: BoxFit.fitWidth,
              ),
            ],
          ),
        );
      },
    );
  }
}
